<div class="panel panel-default">
	<div class="panel-heading">
		添加调研活动
	</div>
	<div class="panel-body">
		{if $item['rid']}
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">快速入口</label>
			<div class="col-sm-8" style="padding-top:10px;">
				<a href="{php echo $this->createWebUrl('question', array('id'=>$item['rid']));}">调研问题管理</a> | <a href="{php echo $this->createWebUrl('answer', array('id'=>$item['rid']));}">调研报告管理</a>
			</div>
		</div>
		{/if}
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">调研标题</label>
			<div class="col-sm-8">
				<input type="text" class="form-control" name="title" value="{$item['title']}" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">封面图片 </label>
			<div class="col-sm-9">
				{php echo tpl_form_field_image('thumb', $item['thumb']);}
				<span class="help-block"></span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">简介</label>
			<div class="col-sm-8">
				<textarea id="reply-add-text" name="description" class="form-control" style="height:100px;">{$item['description']}</textarea>
			</div>
		</div>
		
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">调研时间</label>
			<div class="col-sm-4">
				<div class="input-group">
				{php echo tpl_form_field_date('stime', $item['stime'], true);}
				<span class="input-group-addon">至</span>
				{php echo tpl_form_field_date('etime', $item['etime'], true);}
				</div>
			</div>
		</div>	
		
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">结束语</label>
			<div class="col-sm-8">
				<input type="text" class="form-control" name="success_info" value="{$item['success_info']}" />
				<span class="help-block">调研结束后的提示语言！</span>
			</div>
		</div>
		
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">调研内容</label>
			<div class="col-sm-8">
				<textarea name="content" class="form-control richtext" cols="70" rows="10">{$item['content']}</textarea>
			</div>
		</div>
				
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">调研总数</label>
			<div class="col-sm-3">
				<div class="input-group">
					<input type="text" name="max_num" value="{$item['max_num']}" class="form-control" />
					<span class="input-group-addon">份</span>
				</div>
				<span class="help-block">收集到多少份调研报告后停止调研！默认0不限制</span>
			</div>
		</div>

		<div class="form-group hide">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">参与送积分</label>
			<div class="col-sm-3">
				<input type="text" name="credit" value="{$item['credit']}" class="form-control" />
				<span class="help-block">参与本次调研可以获得多少积分</span>
			</div>
		</div>
		<div class="form-group hide">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
			<div class="col-sm-3">
				<input type="text" name="coupon" value="{$item['coupon']}" class="form-control" />
				<span class="help-block">参与本次调研可以获得代金券或折扣券</span>
			</div>
		</div>

	</div>
</div>

<!-- 此函数为扩展验证表单JS，您有需要验证可以实现此函数提示错误信息，当然也可以不实现。-->
<script language='javascript'>
    require(['jquery', 'util'], function($, u){
		$(function(){
			u.editor($('.richtext')[0]);
		});
            });
    
</script>